package com.crab.business.example.dao;

import com.crab.business.example.model.ExampleBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by liusk on 2016/7/29.
 */
@Mapper
public interface CustomMapper {
    @Select("select * from T_EXAMPLE where username like '%#{username}%'")
    public List<ExampleBean> selectAll(@Param("username") String username);
}
